package com.baiyue.mapper;

import com.baiyue.entity.TableSet;
import com.baiyue.model.SelectOptionsResult;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 伍波
 * @date 2024-04-30
 */
@Mapper
public interface TableSetMapper extends BaseMapper<TableSet> {
    @Select({
            "select",
            "*",
            "from table_set",
            "where room_name = #{roomName}"
    })
    TableSet getTableSetByTableName(String roomName);

    List<TableSet> findAll(TableSet tableSet);

    List<SelectOptionsResult> findIdAndName();
}
